package com.myk.game.gobangchess.ai.gravityfour;

public class Main3 {

    public static void main(String[] args) {
        int[][] board = {
            {0, 1, 1, -1, 0, 0},
            {0, 0, -1, 1, 0, 0},
            {0, 0, 0, 0, 0, 0},
            {0, 0, 0, 0, 0, 0},
            {0, 0, 0, 0, 0, 0},
            {0, 0, 0, 0, 0, 0}
        };
        int direction = 9;    //7：向下    8：向左    9：向上，   10：向右
        int playerTurn = 1;
        int dirChanged = 0;
        int difficulty = 4;

        long startTime = System.currentTimeMillis();
        int[] point = G4Engine.G4Engine1(board, direction, dirChanged,playerTurn, difficulty);
        System.out.println("set " + point[0] + point[1]);

        long endTime = System.currentTimeMillis();
        long elapsedTime = endTime - startTime;
        System.out.println("Elapsed Time in milliseconds: " + elapsedTime);

    }
}
